﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PFB_15
{
    enum Gender
    {
        Male,
        Female,
        Unknown
    }

    class Person
    {
        public Person()
        {
            
        }
        public Person(string Name, DateTime DateOfBirth)
        {
            this.Name = Name;
            this.DateOfBirth = DateOfBirth;
            Person.DoWork();
        }
        public string Name { get; set; }
        public DateTime DateOfBirth { get; set; }
        public Gender Gender { get; set; }

        public int Age
        {
            get
            {
                return (DateTime.Now - this.DateOfBirth).Days / 365;
            }
        }

        public static void DoWork()
        {
            
        }
        
        public override string ToString()
        {
            return String.Format("{0} {1} {2}", this.Name, this.Gender, this.Age);
        }

    }
}
